<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="bjui-leftside">
    <div id="bjui-sidebar-s">
        <div class="collapse"></div>
    </div>
    <div id="bjui-sidebar">
        <div class="toggleCollapse"><h2><i class="fa fa-bars"></i> 导航栏 <i class="fa fa-bars"></i></h2><a href="javascript:;" class="lock"><i class="fa fa-lock"></i></a></div>
        <div class="panel-group panel-main" data-toggle="accordion" id="bjui-accordionmenu" data-heightbox="#bjui-sidebar" data-offsety="26">
            <div class="panel panel-default">
                <div class="panel-heading panelContent">
                    <h4 class="panel-title"><a data-toggle="collapse" data-parent="#bjui-accordionmenu" href="#bjui-collapse4" class="active"><i class="fa fa-caret-square-o-down"></i>&nbsp;系统管理</a></h4>
                </div>
                <div id="bjui-collapse" class="panel-collapse panelContent collapse in">
                    <div class="panel-body" >
                        <ul id="bjui-tree4" class="ztree ztree_main" data-toggle="ztree" data-on-click="MainMenuClick" data-expand-all="true">
                        	<c:forEach items="${list}" var="list" varStatus="status">
                        	<c:if test="${list.modLevel == 0}">
                        	<li data-id="${list.modCode}">${list.modName}</li>
                        	</c:if>
                        	<c:if test="${list.modLevel == 1}">
                        	<li data-id="${list.modCode}" data-pid="${list.parentCode}">${list.modName}</li>
                        	</c:if>
                        	<c:if test="${list.modLevel == 2}">
                        	<li data-id="${list.modCode}" data-pid="${list.parentCode}" data-url="<%=request.getContextPath()%>/${list.modUrl}?mod_code=${list.modCode}" data-tabid="${list.modCode}" data-fresh="true" >${list.modName}</li>
                        	</c:if>
	                        </c:forEach>
	                        <li data-id="data_99" data-pid="rear_manage">店铺管理</li>
	                        <li data-id="data_999" data-pid="data_99">商家管理</li>
	                        <li data-id="data_888" data-pid="data_99">商品管理</li>
							<li data-id="data_7" data-pid="data_999" data-url="<%=request.getContextPath()%>/tea/goods/index.do" data-tabid="tab_8" data-fresh="true" >商品分类</li>
							<li data-id="data_8" data-pid="data_999" data-url="<%=request.getContextPath()%>/tea/foods/index.do" data-tabid="tab_7" data-fresh="true" >商品信息</li>
							<li data-id="data_9" data-pid="data_999" data-url="<%=request.getContextPath()%>/tea/ratings/index.do" data-tabid="tab_9" data-fresh="true" >商品评论</li>
							<li data-id="data_10" data-pid="data_888" data-url="<%=request.getContextPath()%>/tea/seller/index.do" data-tabid="tab_10" data-fresh="true" >商家信息</li>
							<li data-id="data_11" data-pid="data_888" data-url="<%=request.getContextPath()%>/tea/sellerRatings/index.do" data-tabid="tab_11" data-fresh="true" >商家评论</li>
							<li data-id="data_12" data-pid="data_888" data-url="<%=request.getContextPath()%>/tea/supports/index.do" data-tabid="tab_13" data-fresh="true" >商家特权</li>
                        </ul>
                    </div>
                </div>
                <div class="panelFooter"><div class="panelFooterContent"></div></div>
            </div>
        </div>
    </div>
</div>